package com.ccrfid.rmc6.repository.business.prison.patrolcheck;

import com.ccrfid.rmc6.entity.business.prison.patrolcheck.PatrolCheckResultEntity;
import com.ccrfid.rmc6.repository.search.SearchableRepository;
import org.springframework.data.repository.Repository;

import java.sql.Timestamp;

public interface PatrolCheckResultRepository extends Repository<PatrolCheckResultEntity, Long>,
        SearchableRepository<PatrolCheckResultEntity> {

    PatrolCheckResultEntity save(PatrolCheckResultEntity entity);

    PatrolCheckResultEntity getByPoliceIdAndGroupIdAndStartTimeAndStopTime(
            Long policeId, Long groupId, Timestamp startTime, Timestamp stopTime);
}
